#pragma once

#include "CoreMinimal.h"
#include "Input/InputConfigureLibrary.h"


DECLARE_LOG_CATEGORY_EXTERN(WGI_ConfigFileEditorLog, Log, All);

static class INPUTCONFIGUREBUTTON_API InputConfigureLibraryEditor
{
public:

	static bool bAutoSave;

	static FString GetNewInputGroupKey();

	static FString InputConfigFile_Create();
	static FString InputConfigFile_Create(FString NewGroupKey);
	static bool InputConfigFile_Rename(FString OldGroupKey, FString NewGroupKey);
	static void InputConfigFile_Save(FInputConfigureGroupData* inGroup);
	static void InputConfigFile_Save(TSharedPtr<FInputConfigureGroupData> inGroup);
	static void InputConfigFile_Delete(FString inGroupKey);
	static FString InputConfigFile_Copy(FString inGroupKey);

	static void CreateExampleInputGourp();
private:
	static void SaveUpdateCode(FString GroupKey);
	static void DeleteUpdateCode(FString GroupKey);
};